Q64: What issue would the following code cause?
// SPDX-License-Identifier: SOME IDENTIFIER
pragma solidity ^0.8.10;
contract ValueContract {
bytes byteValue = “Sample Data”;
string stringValue = “Sample Data”;
function getBytesLength() public view returns (uint){
return byteValue.length;
}
function getStringLength() public view returns (uint){
return stringValue.length;
}
}
A. No issue at all. The code would compile, run, and return 11 for
both functions
B. No issue at all. The code would compile, run, and return 11 for
getBytesLength and 10 for getStringLength function
C. The code would compile but would throw an error while
running it
D. The code would not compile at all
Q65: What would be the output of the following contract in the
retrieveDefaultValue function?
// SPDX-License-Identifier: SOME IDENTIFIER
pragma solidity ^0.8.10;
contract EnumSample {
enum Day
{
Monday,
Tuesday,
Wednesday,
Thursday,